export const getQueryParams = () => {
  let obj = {}
  const url = window.location.href
  const params = url.substr(url.lastIndexOf('?')).replace('#/', '')
  const searchParams = new URLSearchParams(params)
  for (let key of searchParams.keys()) {
    obj[key] = searchParams.get(key)
  }
  return obj
}
